<?php

namespace PcHome\Controller;
use Common\Controller\PcHomeBaseController;
class SearchController extends PcHomeBaseController {
    /*
     * 搜索页
     * */
    public function index() {
        $keyword = I("request.keyword");

        if (empty($keyword)) {
            $this->error("关键词不能为空！请重新输入！");
        }

        $this->assign("keyword", $keyword);
        $this->display(":search");
    }
}